package com.ran.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
/**
 * 组合
 * @EnableAutoConfiguration
 * @ComponentScan	当前启动类包或子包
 */
//打jar包  clean package -Dmaven.test.skip=true
//开启组件扫描	过滤器/拦截器能够拦截消息
@ServletComponentScan
@EnableTransactionManagement
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class,args);
        log.info("项目启动成功...");
    }
}













